<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUIndentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //订单信息
        Schema::create('u_indent', function (Blueprint $table) {
            $table->increments('id');
			$table->integer('uid')->unsigned();
			$table->integer('mid')->unsigned();
			$table->enum('status', ['wait', 'pay']);
            $table->string('time');
            $table->string('ip');
			$table->decimal('cost', 5, 2);			
			//$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
		Schema::drop('u_indent');
    }
}
